package cn.liontalk.concurrent;

import cn.liontalk.concurrent.common.Punishment;
import cn.liontalk.concurrent.entity.StudentRunnable;
import cn.liontalk.concurrent.entity.StudentThread;

public class StudentThreadClient {
    public static void main(String[] args) {
        Punishment punishment = new Punishment(100, "internationalization");
        StudentThread student = new StudentThread("小明", punishment);
        student.start();


        StudentThread xiaozhang = new StudentThread("小张",punishment);
        xiaozhang.start();

        StudentThread xiaozhao = new StudentThread("小赵",punishment);
        xiaozhao.start();
    }
}
